




// 启动 自定义 服务
int RunServerThread(XHS_ServerObject objServer)
{
	DynLoad_C_GlobalData(objServer);
	if ( objServer->DefaultHost.ServiceInit ) {
		void (*ServiceInit)(XHS_ServerObject objServer) = objServer->DefaultHost.ServiceInit;
		ServiceInit(objServer);
	}
	if ( objServer->DefaultHost.ServiceStart ) {
		void (*ServiceStart)(XHS_ServerObject objServer) = objServer->DefaultHost.ServiceStart;
		ServiceStart(objServer);
	}
}



// 停止 自定义 服务
int StopServerThread(XHS_ServerObject objServer)
{
	if ( objServer->DefaultHost.ServiceUnit ) {
		void (*ServiceUnit)(XHS_ServerObject objServer) = objServer->DefaultHost.ServiceUnit;
		ServiceUnit(objServer);
	}
}


